package com.rykj.energy.database.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rykj.energy.common.dto.CameraObjectDto;
import com.rykj.energy.database.pojo.BusinessCameraObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CameraObjectMapper  extends BaseMapper<BusinessCameraObject> {

    void saveCamerasObject(List<CameraObjectDto> cameraObjectDtos);

    List<BusinessCameraObject> getCameraObjectById(@Param("taskId") Integer taskId,@Param("cameraId") Integer cameraId,@Param("presetId") Integer presetId);

    void deleteByTaskAndCameraId(@Param("taskId")Integer taskId,@Param("cameraId") Integer cameraId,@Param("presetId") Integer presetId);
}
